package com.sky.mapper;

import org.apache.ibatis.annotations.Select;

public interface SetmealDishMapper {
    // 根据菜品id查询是否存在关联的套餐
    // sql: select count(*) from setmeal_dish where dish_id = #{dishId}
    @Select("select count(*) from setmeal_dish where dish_id = #{dishId}")
    Integer count(Long dishId);
}
